#include "FileSystem/FileSystem.h"

void FileSystem::serialize(const Object* s, const char * filename)
{
	// make an archive
	std::ofstream ofs(filename);
	boost::archive::text_oarchive oa(ofs);
	oa << (*s);
}

void FileSystem::deserialize(Object* &s, const char * filename)
{
	// open the archive
	std::ifstream ifs(filename);
	boost::archive::text_iarchive ia(ifs);
	// restore the schedule from the archive
	ia >> (*s);
}